package com.ash.ws;

import com.ash.ws.api.MobileCodeWS;
import com.ash.ws.api.MobileCodeWSSoap;

/**
 * 相关教程 https://blog.csdn.net/beauxie/article/details/52872991
 * 
 * wsimport -s "D:/Beauxie/" -p "com.beauxie.mobile.ws" "http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx
 * 
 * @author Ashin
 *
 */
public class Main {

    public static void main(String[] args) {
        // 1.创建service
        MobileCodeWS mobileCodeWS = new MobileCodeWS();

        // 2.获取代理对象
        MobileCodeWSSoap soap = mobileCodeWS.getMobileCodeWSSoap();

        // 3.调用服务端方法,方法参数参照接口中的方法说明
        String mobile = "18559878778";// 请输入自己的真实号码~~
        String info = soap.getMobileCodeInfo(mobile, null);

        // 4.输出结果
        System.out.println(info);
    }
}
